//
//  PhotosViewController.h
//  FlowChart
//
//  Created by yilong.zhang on 11-4-3.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CUploadPageCtrl.h"
#import "CUploadPreView.h"
#import "AppConfig.h"

@class AppConfig;

@protocol PhotoImagePickerDelegate;
@protocol PreImageViewDelegate;

@class CProductPreview;


@interface PhotosViewController : UIImagePickerController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, UploadPreViewDelegate>

@property (nonatomic, assign) id<PhotoImagePickerDelegate> m_delegate;
@property (nonatomic, assign) id        m_Target;
@property (nonatomic, assign) SEL       m_Action;
@property (nonatomic, retain) UIImage   *m_Image;
@property (nonatomic, assign) CUploadPreView *m_PreView;

-(id)initWithSize:(CGSize)size;

-(void)ShowPreView;
-(void)DidImageSelected:(UIImage*)image;


@end

@protocol PhotoImagePickerDelegate <NSObject>

@optional
-(void)ImagePickerDidCancel;
-(void)ImagePickerDidSelectImage:(UIImage*)image;

@end
